import request from '@/utils/request'

// 列表查询
const tableList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterSmsConf/getWaterSmsConfigList',
    method: 'post',
    data: params
  })
}

// 修改短信配置
const updWaterSmsConfig = function (params = {}) {
  return request({
    url: '/zy-api/api/waterSmsConf/updWaterSmsConfig',
    method: 'post',
    data: params
  })
}

// 短信接收人员列表
const getUserList = function (params = {}) {
  return request({
    url: '/zy-api/api/waterSmsConf/getUserList',
    method: 'post',
    data: params
  })
}

// 设置单个用户
const addUser = function (params = {}) {
  return request({
    url: '/zy-api/api/waterSmsConf/addUser',
    method: 'post',
    data: params
  })
}

// 批量设置用户
const batchAddUser = function (params = {}) {
  return request({
    url: '/zy-api/api/waterSmsConf/addUserBatch',
    method: 'post',
    data: params
  })
}

// 批量取消用户
const batchDelUser = function (params = {}) {
  return request({
    url: '/zy-api/api/waterSmsConf/delUserBatch',
    method: 'post',
    data: params
  })
}

export {
  tableList,
  updWaterSmsConfig,
  getUserList,
  addUser,
  batchAddUser,
  batchDelUser
}